package com.waypolice.pojo;

import java.io.Serializable;
import java.util.Date;

public class CmsWarehouseRack  implements Serializable{
    private static final long serialVersionUID = 1L;
    private Integer id;

    private String warName;

    private String warNumber;

    private String pkNumber;

    private Integer rackBoxCapacity;

    private Integer rackBoxCount;

    private String rackOperatePerson;

    private String rackMaintenancePerson;

    private Date ctime;

    private Date mtime;

    private String raOne;

    private String raTwo;

    private String raThree;

    private String raFour;

    private String raFive;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getWarName() {
        return warName;
    }

    public void setWarName(String warName) {
        this.warName = warName == null ? null : warName.trim();
    }

    public String getWarNumber() {
        return warNumber;
    }

    public void setWarNumber(String warNumber) {
        this.warNumber = warNumber == null ? null : warNumber.trim();
    }

    public String getPkNumber() {
        return pkNumber;
    }

    public void setPkNumber(String pkNumber) {
        this.pkNumber = pkNumber == null ? null : pkNumber.trim();
    }

    public Integer getRackBoxCapacity() {
        return rackBoxCapacity;
    }

    public void setRackBoxCapacity(Integer rackBoxCapacity) {
        this.rackBoxCapacity = rackBoxCapacity;
    }

    public Integer getRackBoxCount() {
        return rackBoxCount;
    }

    public void setRackBoxCount(Integer rackBoxCount) {
        this.rackBoxCount = rackBoxCount;
    }

    public String getRackOperatePerson() {
        return rackOperatePerson;
    }

    public void setRackOperatePerson(String rackOperatePerson) {
        this.rackOperatePerson = rackOperatePerson == null ? null : rackOperatePerson.trim();
    }

    public String getRackMaintenancePerson() {
        return rackMaintenancePerson;
    }

    public void setRackMaintenancePerson(String rackMaintenancePerson) {
        this.rackMaintenancePerson = rackMaintenancePerson == null ? null : rackMaintenancePerson.trim();
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Date getMtime() {
        return mtime;
    }

    public void setMtime(Date mtime) {
        this.mtime = mtime;
    }

    public String getRaOne() {
        return raOne;
    }

    public void setRaOne(String raOne) {
        this.raOne = raOne == null ? null : raOne.trim();
    }

    public String getRaTwo() {
        return raTwo;
    }

    public void setRaTwo(String raTwo) {
        this.raTwo = raTwo == null ? null : raTwo.trim();
    }

    public String getRaThree() {
        return raThree;
    }

    public void setRaThree(String raThree) {
        this.raThree = raThree == null ? null : raThree.trim();
    }

    public String getRaFour() {
        return raFour;
    }

    public void setRaFour(String raFour) {
        this.raFour = raFour == null ? null : raFour.trim();
    }

    public String getRaFive() {
        return raFive;
    }

    public void setRaFive(String raFive) {
        this.raFive = raFive == null ? null : raFive.trim();
    }

    @Override
    public String toString() {
        return "CmsWarehouseRack{" +
                "id=" + id +
                ", warName='" + warName + '\'' +
                ", warNumber='" + warNumber + '\'' +
                ", pkNumber='" + pkNumber + '\'' +
                ", rackBoxCapacity=" + rackBoxCapacity +
                ", rackBoxCount=" + rackBoxCount +
                ", rackOperatePerson='" + rackOperatePerson + '\'' +
                ", rackMaintenancePerson='" + rackMaintenancePerson + '\'' +
                ", ctime=" + ctime +
                ", mtime=" + mtime +
                ", raOne='" + raOne + '\'' +
                ", raTwo='" + raTwo + '\'' +
                ", raThree='" + raThree + '\'' +
                ", raFour='" + raFour + '\'' +
                ", raFive='" + raFive + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {return true;}
        if (!(o instanceof CmsWarehouseRack)) {return false;}

        CmsWarehouseRack that = (CmsWarehouseRack) o;

        if (id != null ? !id.equals(that.id) : that.id != null) {return false;}
        if (warName != null ? !warName.equals(that.warName) : that.warName != null) {return false;}
        if (warNumber != null ? !warNumber.equals(that.warNumber) : that.warNumber != null) {return false;}
        if (pkNumber != null ? !pkNumber.equals(that.pkNumber) : that.pkNumber != null) {return false;}
        if (rackBoxCapacity != null ? !rackBoxCapacity.equals(that.rackBoxCapacity) : that.rackBoxCapacity != null)
            {return false;}
        if (rackBoxCount != null ? !rackBoxCount.equals(that.rackBoxCount) : that.rackBoxCount != null) {return false;}
        if (rackOperatePerson != null ? !rackOperatePerson.equals(that.rackOperatePerson) : that.rackOperatePerson != null)
            {return false;}
        if (rackMaintenancePerson != null ? !rackMaintenancePerson.equals(that.rackMaintenancePerson) : that.rackMaintenancePerson != null)
            {return false;}
        if (ctime != null ? !ctime.equals(that.ctime) : that.ctime != null) {return false;}
        if (mtime != null ? !mtime.equals(that.mtime) : that.mtime != null) {return false;}
        if (raOne != null ? !raOne.equals(that.raOne) : that.raOne != null) {return false;}
        if (raTwo != null ? !raTwo.equals(that.raTwo) : that.raTwo != null) {return false;}
        if (raThree != null ? !raThree.equals(that.raThree) : that.raThree != null) {return false;}
        if (raFour != null ? !raFour.equals(that.raFour) : that.raFour != null) {return false;}
        return raFive != null ? raFive.equals(that.raFive) : that.raFive == null;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (warName != null ? warName.hashCode() : 0);
        result = 31 * result + (warNumber != null ? warNumber.hashCode() : 0);
        result = 31 * result + (pkNumber != null ? pkNumber.hashCode() : 0);
        result = 31 * result + (rackBoxCapacity != null ? rackBoxCapacity.hashCode() : 0);
        result = 31 * result + (rackBoxCount != null ? rackBoxCount.hashCode() : 0);
        result = 31 * result + (rackOperatePerson != null ? rackOperatePerson.hashCode() : 0);
        result = 31 * result + (rackMaintenancePerson != null ? rackMaintenancePerson.hashCode() : 0);
        result = 31 * result + (ctime != null ? ctime.hashCode() : 0);
        result = 31 * result + (mtime != null ? mtime.hashCode() : 0);
        result = 31 * result + (raOne != null ? raOne.hashCode() : 0);
        result = 31 * result + (raTwo != null ? raTwo.hashCode() : 0);
        result = 31 * result + (raThree != null ? raThree.hashCode() : 0);
        result = 31 * result + (raFour != null ? raFour.hashCode() : 0);
        result = 31 * result + (raFive != null ? raFive.hashCode() : 0);
        return result;
    }
}